package apiday04.file;

import java.io.File;

public class MkDirsDemo {
    public static void main(String[] args) {
        File dirs = new File("./a/b/c/d/f");
        if (dirs.exists()){
            System.out.println("目录已存在！");
        }else {
            dirs.mkdirs();
            System.out.println("目录已创建");
        }
    }
}
